package com.vchello.service.impl.lib;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.vchello.bean.lib.Unit;
import com.vchello.dao.lib.UnitDao;
import com.vchello.service.lib.UnitService;

@Service(value = "unitService")
public class UnitServiceImpl extends ServiceImpl<UnitDao, Unit> implements UnitService{

	@Autowired
	private UnitDao unitDao;

	@Override
	public List<Unit> findAll() {
		return unitDao.selectList(new EntityWrapper<Unit>());
	}

}
